using Pay.TO;
using System;

namespace Pay.Data
{
	/// <summary>
	/// 消费项目表
	/// </summary>
	[Serializable]
	public class ConsumeItem
	{
		/// <summary>
		/// 消费项目Id
		/// [主键：√]
		/// [长度：19]
		/// [不允许为空]
		/// </summary>
		public long Id { get; set; }

        /// <summary>
        /// 消费项目类型（枚举）
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public EConsumeItemType ConsumeType { get; set; }

        /// <summary>
        /// 标题
        /// [长度：50]
        /// [不允许为空]
        /// </summary>
        public string Title { get; set; }

		/// <summary>
		/// 图片
		/// [长度：200]
		/// [不允许为空]
		/// </summary>
		public string ImgUrl { get; set; }

		/// <summary>
		/// 说明
		/// [长度：500]
		/// </summary>
		public string Detail { get; set; }

		/// <summary>
		/// 点击数
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public int ClickNum { get; set; }

		/// <summary>
		/// 参与数
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public int ParticipationNum { get; set; }

		/// <summary>
		/// 是否停用
		/// [长度：1]
		/// [不允许为空]
		/// [默认值：((0))]
		/// </summary>
		public bool Disabled { get; set; }

		/// <summary>
		/// 创建时间
		/// [长度：23，小数位数：3]
		/// [不允许为空]
		/// </summary>
		public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否在AppStore版本中显示
        /// </summary>
        public bool IsAppStoreShow { get; set; }


        /// <summary>
        /// 适用于(枚举)
        /// </summary>
        public EConsumeItemApply Apply { get; set; }

        /// <summary>
        /// Url地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
